package me.imli.app.ui;

import me.imli.app.R;
import me.imli.app.util.ThemeUtil;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EActivity;

import android.annotation.SuppressLint;

@EActivity(R.layout.activity_setting)
public class SettingActivity extends BaseActivity {

	@AfterViews
	void init() {
		
	}
	
	@SuppressLint("NewApi")
	@Click(R.id.tv_setting_night)
	void night() {
		if (ThemeUtil.getCurTheme() == ThemeUtil.THEME_BULE) {
			ThemeUtil.changeTheme(this, ThemeUtil.THEME_NIGHT);
		} else {
			ThemeUtil.changeTheme(this, ThemeUtil.THEME_BULE);
		}
	}
	
}
